﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using QuanLyPhongMach.HeThongLuuTru_DAO;
using QuanLyPhongMach.HeThongXuLy_DTO;


namespace QuanLyPhongMach.HeThongGiaoDien
{
    public partial class frmTraCuuDanhSachBenhNhan : Form
    {
        public frmTraCuuDanhSachBenhNhan()
        {
            InitializeComponent();
        }

        private void frmTraCuuDanhSachBenhNhan_Load(object sender, EventArgs e)
        {
            txtNgayKham.Text = DateTime.Now.ToShortDateString();
            DataTable dt1 = PhieuKhamBenhDAO.DsPhieuKhamBenh();
            cbMaBN.DataSource = dt1;
            cbMaBN.DisplayMember = "MaBN";
            cbMaBN.ValueMember = "MaBN";

           
            DataTable dt2 = PhieuKhamBenhDAO.DsPhieuKhamBenh_HoTen();
            cbHoTen.DataSource = dt2;
            cbHoTen.DisplayMember = "HoTen";
            //cbHoTen.ValueMember = "NgayKham";
            //txtNgayKham.Text = cbMaBN.SelectedValue.ToString();


            cbMaBN.Text = "";
            cbHoTen.Text = "";
            txtNgayKham.Text = "";
            

            //MessageBox.Show(cbMaBN.SelectedValue.ToString(), "tb");
            
        }

       

        

       
    }
}
